package com.tuyou.cloud.feign.controller;

import com.tuyou.cloud.feign.service.UserClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @描述:
 * @创建人: 涂有(tuyou_cd @ keruyun.com)
 * @创建时间: 2019-09-02
 */
@RestController
public class UserController {

    @Resource
    private UserClient userClient;

    @GetMapping("/user/email/{ids}")
    public List<String> getEmailS(@PathVariable("ids") String ids) {
        return userClient.getEmail(ids);
    }
}
